package com.example.administrator.order_broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

public class MiddlePriorityReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        Bundle bundle=getResultExtras(false);
        String name=bundle.getString("name");
        int age=bundle.getInt("age");
        Log.e("MiddlePriorityReceiver","onReceive name=  "+name+"age= "+age);
        bundle.putString("add","longdong");
        bundle.putInt("number",5);
        setResultExtras(bundle);
    }
}
